export const request=(params)=>{
  return new Promise((resolve,reject)=>{
      wx.request({
        ...params,
        method:"GET",
        success:(result)=>{
           resolve(result)
        },
        fail:(err)=>{
           reject(err)
        }
      });
  })
}
export const post=(params)=>{
  return new Promise((resolve,reject)=>{
      wx.request({
        ...params,
        method:"POST",
        success:(result)=>{
           resolve(result)
        },
        fail:(err)=>{
           reject(err)
        }
      });
  })
}
